var WxParse = require('../../wxParse/wxParse.js');

var app = getApp()
Page({
  data: {
    title:''
  },
  onLoad: function (e) {
    var that = this;  
    app.setNavtitle('积分规则');
    wx.showLoading({
      title: '加载中',
    })
    wx.getStorage({
      key: 'jfrules',
      success: function (res) {
        console.log(res)
        that.setData({
          rules: res.data
        })
        var article = res.data;
        // 富文本解析
        WxParse.wxParse('article', 'html', article, that, 5);
        wx.hideLoading();
      }
    })
  },
})